.editor .editor-body {
    cursor: pointer;
    min-height: 50px;
    height: auto;
}

    .editor .editor-body:focus:before {
        content: none;
    }

    .editor .editor-body:empty:before {
        content: attr(placeholder);
    }

.editor .note-editor .note-right {
    float: right;
}

.editor .note-btn-close {
    background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
    background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
    background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
    background-repeat: repeat-x;
    border-color: #28a4c9;
    color: #fff;
}

.editor .dropdown-menu {
    overflow: unset;
    max-height: unset;
    max-width: unset;
}

.editor .note-btn {
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-hover-color: var(--bs-btn-color);
    --bs-btn-active-color: var(--bs-btn-color);
    --bs-btn-disabled-color: var(--bs-btn-color);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--bs-bordery-color);
    --bs-btn-hover-bg: #e6e6e6;
    --bs-btn-hover-border-color: #adadad;
    --bs-btn-active-bg: var(--bs-btn-hover-bg);
    --bs-btn-active-border-color: var(--bs-btn-hover-bg);
}

    .editor .note-btn:not(:disabled):not(.disabled).active,
    .editor .note-btn:not(:disabled):not(.disabled):active,
    .editor .show > .note-btn.dropdown-toggle {
        color: #212529;
        background-color: #dae0e5;
        border-color: #d3d9df;
    }

.editor .note-toolbar {
    flex-wrap: wrap;
    display: block;
}

.editor.is-invalid .note-frame,
.editor.is-invalid > .form-control {
    border: 1px solid var(--bs-danger) !important;
}

.editor.is-valid .note-frame,
.editor.is-valid > .form-control {
    border: 1px solid var(--bs-success) !important;
}

.modal-body .note-form-group:not(:last-child) {
    margin-bottom: 0.5rem;
}

.note-form-label,
.note-group-select-from-files {
    margin-bottom: .5rem;
}

.form-check sn-checkbox-open-in-new-window .form-check-input {
    margin-right: .5rem;
}

[data-bs-theme='dark'] .editor .note-btn {
    --bs-btn-bg: #404349;
    --bs-btn-hover-bg: #51545a;
    --bs-btn-hover-border-color: #adadad;
}
